import { Entity, PrimaryGeneratedColumn, Column } from "typeorm";

@Entity({
    name: 'user'
})
export class User {
    //[key: string]: any;
    @PrimaryGeneratedColumn()
    user_id!: number;

    @Column()
    user_name!: string;

    @Column()
    user_pwd!: string;

    @Column()
    user_type!: number;

    @Column()
    user_img!: string;

    @Column()
    user_addtime!: number;
}

export let selectUserField = { 
    user_id: true,
    user_name:true,
    user_img:true,
    user_type: true,
    user_addtime:true
}